<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="englishList.title"/></title>
<content tag="heading"><fmt:message key="englishList.heading"/></content>
<meta name="menu" content="EnglishMenu"/>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editEnglish.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<html:rewrite forward="mainMenu"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="englishList" cellspacing="0" cellpadding="0"
    id="englishList" pagesize="25" class="table englishList"
    export="true" requestURI="">

    <display:column property="id" sortable="true" headerClass="sortable"
        url="/editEnglish.html" paramId="id" paramProperty="id"
        titleKey="englishForm.id"/>
    <display:column property="typeId" sortable="true" headerClass="sortable"
         titleKey="englishForm.typeId"/>
    <display:column property="no" sortable="true" headerClass="sortable"
         titleKey="englishForm.no"/>
    <display:column property="question" sortable="true" headerClass="sortable"
         titleKey="englishForm.question"/>
    <display:column property="answers" sortable="true" headerClass="sortable"
         titleKey="englishForm.answers"/>
    <display:column property="description" sortable="true" headerClass="sortable"
         titleKey="englishForm.description"/>
    <display:column property="year" sortable="true" headerClass="sortable"
         titleKey="englishForm.year"/>
    <display:setProperty name="paging.banner.item_name" value="english"/>
    <display:setProperty name="paging.banner.items_name" value="englishs"/>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("englishList");
</script>
